import React, { useEffect, useState } from 'react';
import './DropLi.scss'
export default function ({item,handleValueFromChild}){
    //点击下拉框中的数量的函数
    const sendValueToParent = () => {
        handleValueFromChild(item.name);
    };
    return (
        <div onClick={sendValueToParent} className='DropLi'>
           <p>{item.name}</p>
        </div>
    )
}